package edu.mju.mvcDemo.controller;

import edu.mju.annotation.annotation.XxAutowired;
import edu.mju.annotation.annotation.XxController;
import edu.mju.annotation.annotation.XxRequestMapping;
import edu.mju.mvcDemo.service.ITestService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@XxController
@XxRequestMapping("/test")
public class TestController {

    @XxAutowired
    private ITestService iTestService;

    @XxRequestMapping("/demo")
    public String demo(HttpServletRequest request, HttpServletResponse response, String name) {
        return iTestService.test(name);
    }
}
